home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-05-16 | 1.7 KB | 74 lines |
- # Makefile for smake from SAS/C 6.x release
-
- PROGNAME =clock
-
- # If you change these, make sure you edit clock.doc and readme,
- # and change version number there, too
- MAJORVER =1
- MINORVER =2
-
- ARCVERSION =$(MAJORVER)_$(MINORVER)
- EXEVERSION =$(MAJORVER).$(MINORVER)
-
- CFLAGS=define VERSION="$(EXEVERSION)" define PROGNAME="$(PROGNAME)"
-
- CS=clock.c progargs.c compute_date.c
- OS=clock.o progargs.o compute_date.o
- OOS=clock.oo progargs.oo compute_date.oo
- OOLIST=clock.oo+progargs.oo+compute_date.oo
- HS=progargs.h
- GST=clock.gst
- ARCHIVE=$(PROGNAME)$(ARCVERSION).lha
- ARCDIR=$(PROGNAME)$(ARCVERSION)
- README=$(PROGNAME)$(ARCVERSION).readme
- EXES=$(PROGNAME) $(PROGNAME)-det
- INFOS=$(PROGNAME).info $(PROGNAME)-det.info clock.doc.info
- ARCFILES=clock.doc $(EXES) $(INFOS) readme $(CS) $(HS) makefile SCoptions
-
- test: d$(PROGNAME)
-
- all: $(EXES)
-
- d$(PROGNAME) : $(GST) $(OS)
- $(CC) PNAME $@ $(OS) LINK
-
- d$(PROGNAME)-det : $(GST) $(OS)
- $(CC) PNAME $@ STARTUP=cback $(OS) LINK
-
- d$(PROGNAME).info d$(PROGNAME)-det.info $(PROGNAME)-det.info : $(PROGNAME).info
- copy $(PROGNAME).info to $@
-
- $(PROGNAME) : $(GST) $(OOS)
- $(CC) PNAME $@ obj=$(OOLIST) LINK
-
- $(PROGNAME)-det : $(GST) $(OOS)
- $(CC) PNAME $@ STARTUP=cback obj=$(OOLIST) LINK
-
- gst: $(GST)
-
- $(GST): $(HS)
- $(CC) $(CFLAGS) makegst $@ clock.c
-
- clean:
- - delete QUIET $(EXES) $(PROGNAME)-det.info $(OS) $(OOS) $(GST) \
- $(ARCHIVE) $(README) $(ARCDIR)
-
-
- archive: $(ARCHIVE) $(README)
-
-
- $(ARCHIVE): $(ARCFILES)
- - delete QUIET $@ $(ARCDIR) ALL
- MAKEDIR $(ARCDIR)
- COPY $(ARCFILES) $(ARCDIR) QUIET
- lha -I -n -r -X -2 a $@ $(ARCDIR)
- - delete QUIET $(ARCDIR) ALL
-
-
- $(README): readme
- COPY readme $@
-
-
- .c.oo :
- $(CC) $(CFLAGS) opt nodebug nostackcheck objname=$@ $*
-